<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
	
	<f:view id="new-subscription">
		<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
			<title>
				<h:outputText value="#{msg.subscription_details_title}" />
			</title>
		</head>
		<body>
			<ui:composition template="subscription-details.xhtml" >	
				<ui:define name="metadata">
					<f:metadata>						
						<f:event type="javax.faces.event.PreRenderViewEvent" listener="#{subscriptionBean.preRenderNewView}" />
					</f:metadata>
				</ui:define>			
				<ui:define name="title">
					<h:outputText value="#{msg.new_subscription_title}" />
				</ui:define>
				<ui:define name="content">
					<div id="msg_block">
						<h:messages id="globalMessages" globalOnly="true" infoClass="globalInfoClass" errorClass="globalErrorClass" />
					</div>
					<h:form id="newSubscriptionForm">
						<ui:include src="subscription-data.xhtml" />
						<h:commandButton id="saveSubscription" value="#{msg.new_subscription_save}" action="#{subscriptionBean.createNewSubscription}" />
					</h:form>
				</ui:define>
				<ui:define name="foot-nav">
					<h:link value="#{msg.details_foot_nav_overview}" outcome="orderCancelOverview" />
				</ui:define>
			</ui:composition>
		</body>
	</f:view>
</html>